<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="WEB-INF/jsp/comm-header.jsp" %>
<%@ page language="java" import="java.net.URLEncoder" %>
<!DOCTYPE html>
<html lang="zh-CN">
<%     
	response.setHeader("P3P","CP=CAO PSA OUR");
%>  
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <c:set var="contextPath" value="${pageContext.request.contextPath}" scope="application"/>
    <title>正在加载应用</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

	<link rel="shortcut icon" href="${contextPath}/favicon.ico" type="image/x-icon" />
    <link href="${contextPath}/resources/yhzx/css/bootstrap.css" rel="stylesheet">
    <link href="${contextPath}/resources/yhzx/css/login.css" rel="stylesheet">
    <link href="${contextPath}/resources/yhzx/css/entypo-icon.css" rel="stylesheet">
    
    <script src="${contextPath}/resources/js/jquery.min.js"></script>
    <script src="/UcConfig/uca/GlobalParams.js"></script>
    <script src="${contextPath}/resources/js/jquery-extention.js"></script>
   	<script src="${contextPath}/resources/myjs/UCenterCommon.js"></script>
</head>

<body style="background-color:#f9f9fb">

<form id="wechatRedirectForm" method="post" action="/DooneUserCenterAuthz/oauth/wechatRedirectAuth">
	<input type="hidden" id="appid" name="appid" value="<%=java.net.URLEncoder.encode(request.getParameter("appid"))%>">
	<input type="hidden" id="client_id" name="client_id" value="<%=java.net.URLEncoder.encode(request.getParameter("client_id"))%>">
	<input type="hidden" id="client_secret" name="client_secret">
	<input type="hidden" id="response_type" name="response_type">
	<input type="hidden" id="scope" name="scope">
	<input type="hidden" id="redirect_uri" name="redirect_uri" value="<%=java.net.URLEncoder.encode(request.getParameter("redirect_uri"))%>">
	<input type="hidden" id="state" name="state">
	<input type="hidden" id="code" name="code" value="<%=java.net.URLEncoder.encode(request.getParameter("code"))%>">
</form>

<script type="text/javascript">
    (function() {
    	UCenterCommon.getWechatUserInfo();
    })();
</script>
</body>
</html>